function call(mobile) {
    var that = this;
    mobile += '';
    uni.getSystemInfo({
        success: function (res) {
            if (res.platform == 'android') {
                uni.showModal({
                    title: '提示',
                    content: '确定要拨打电话？',
                    success: function (res) {
                        if (res.confirm) {
                            uni.makePhoneCall({
                                phoneNumber: mobile
                            });
                        }
                    }
                });
            } else if (res.platform == 'ios') {
                uni.makePhoneCall({
                    phoneNumber: mobile
                });
            }
        }
    });
}

module.exports = {
    call: call
};
